package com.zy.service.impl;

import java.util.List;

import com.zy.dao.LinkManDao;
import com.zy.dao.impl.LinkManDaoImpl;
import com.zy.entity.Customer;
import com.zy.entity.Linkman;
import com.zy.service.LinkManService;

import jdk.internal.dynalink.linker.LinkerServices;

public class LinkManServiceImpl implements LinkManService{
	LinkManDao lk = new LinkManDaoImpl();
	@Override
	public List<Customer> getCustomer() {
		return lk.getCustomer();
	}
	@Override
	public void insertLinkman(Linkman linkman) {
		lk.insertLinkMan(linkman);
	}
	@Override
	public List<Linkman> quaryall() {
		return lk.quaryall();
	}
	@Override
	public Linkman quaryLinkman(int id) {
		return lk.quaryLinkman(id);
	}
	@Override
	public void updateLinkman(Linkman linkman) {
		lk.updateLinkman(linkman);
		
	}
	@Override
	public List<Linkman> queryByName(String name) {
		return lk.quaryByName(name);
	}
	@Override
	public List<Linkman> quaryByCustomer(int clid) {	
		return lk.quaryByCustomer(clid);
	}
	@Override
	public List<Linkman> quaryByCL(int clid, String linkname) {
		return lk.quaryByCL(clid, linkname);
	}

}
